package hotel.switchs.oversea.online.mapper;

import hotel.base.oversea.repository.MyMapper;
import hotel.switchs.oversea.api.entity.SwitchHotelPriceSetRelationEntity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Auther: lmf
 * @Date: 2021/02/26/14:01
 * @Description:
 */
public interface SwitchHotelPriceSetRelationMapper extends MyMapper<SwitchHotelPriceSetRelationEntity> {
    /***
    * @Author: lmf
    * @Date: 2021/3/3
     * 获取某类公式的酒店数据列表
    */
    List<Integer> selectHotelListForFormula(@Param("formula") Integer formula);
    /***
    * @Author: lmf
    * @Date: 2021/3/8
     * 删除价格公式的绑定数据
    */
    int deleteByHotelIdAndFormula(@Param("hotelId") Integer hotelId, @Param("formula") int formula);
}
